let str = 'hey, i\'am fine, thank you, and you???'

function firstUpperCase (str) {
  return str.toLowerCase().replace(/( |^)[a-z]/g, L => L.toUpperCase())
}

console.log(firstUpperCase(str))
